]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
network: fix a variable name
authorDan Winship <danw@gnome.org>
Wed, 27 Apr 2011 13:05:39 +0000 (09:05 -0400)
committerDan Winship <danw@gnome.org>
Wed, 27 Apr 2011 13:05:39 +0000 (09:05 -0400)
js/ui/status/network.js

index 49cb3f02bae221dca3f29c56e6cbd5b683f6ed66..d56c0b1cc832c12dcbbc189f097b0739030f2ee8 100644 (file)
@@ -1285,7 +1285,7 @@ NMDeviceWireless.prototype = {
             let menuPos = 0;
             for (pos = 0;
                  pos < this._networks.length &&
-                 this._networkSortFunction(this._networks[i], apObj) < 0; ++pos) {
+                 this._networkSortFunction(this._networks[pos], apObj) < 0; ++pos) {
                 if (this._networks[pos] != this._activeNetwork)
                     menuPos++;
             }